package net.jarang.support.clock;

public class PrecisionClock extends FrozenClock {
	/** Millisecond */
	private final int precision;
	
	public PrecisionClock() {
		this(1000);
	}
	
	public PrecisionClock(int precision) {
		this.precision = precision;
	}
	
	public long now() {
		long now = super.now(); 
		return now - (now % precision);
	}
}